'use strict';
module.exports = (sequelize, DataTypes) => {
  const todos = sequelize.define('todos', {
    loginName:DataTypes.STRING,
    name: DataTypes.STRING,
    password:DataTypes.STRING,
    phone:DataTypes.INTEGER,
    email: DataTypes.STRING,
    createTime:{
      type: DataTypes.DATE,
      defaultValue:Date.now
    },
    status:{
      type:DataTypes.INTEGER,
      defaultValue:1
    },  
  }, {
    timestamps:false
  });
  todos.associate = function(models) {
    // associations can be defined here
  };
  return todos;
};